/**
 * Created by V5470-I5 on 2016/4/22.
 */
class Student{
    private String name;
    private int age;
    private int id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
public class StudentTest {
    @Override
    public String toString() {
        return "StudentTest{}";
    }

    public static void main(String[] args){
        Student s =new Student();
        s.setName("Leedonghea");
        s.setAge(31);
        s.setId(20051106);

        System.out.println(getX(s));
    }

    private static String getX(Student s) {
        return "学生信息：姓名："+ s.getName() +"年龄："+ s.getAge() +"学号："+ s.getId();
    }
}
